package test;

import javax.sql.DataSource;

import org.apache.commons.dbcp.BasicDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import analyser.Analyser;
import collector.Collector;
import collector.NetCollector;
import render.PieRenader;
import render.Render;

public class Action {

	public static void main(String[] args) throws Exception{
		
		//create spring IOC Container....
		ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
//		Render r1=context.getBean(Render.class);
//		r1.render();
		DataSource ds=(DataSource) context.getBean("dataSource");
		System.out.println(ds.getConnection());
	}

}
